package com.lynn.salary.pojo;

import java.util.List;
import java.util.Map;

import org.json.simple.JSONArray;

public class TjResultData {

	private String xFields;
	private List<String> dataFields;
	private List<Map<String, Object>> data;
	private List<Map<String, Object>> seriesDef;

	public String getxFields() {
		return xFields;
	}

	public void setxFields(String xFields) {
		this.xFields = xFields;
	}

	public List<Map<String, Object>> getData() {
		return data;
	}

	public void setData(List<Map<String, Object>> data) {
		this.data = data;
	}

	public List<String> getDataFields() {
		return dataFields;
	}

	public void setDataFields(List<String> dataFields) {
		this.dataFields = dataFields;
	}

	public String getDataFieldsString() {
		StringBuffer sb = new StringBuffer("[");
		for (int i = 0; i < dataFields.size(); i++) {
			if (i != 0)
				sb.append(",");
			sb.append("\"" + dataFields.get(i) + "\"");
		}
		sb.append("]");
		return sb.toString();
	}

	public List<Map<String, Object>> getSeriesDef() {
		return seriesDef;
	}

	public void setSeriesDef(List<Map<String, Object>> seriesDef) {
		this.seriesDef = seriesDef;
	}

}
